import axios from 'axios'
// create an axios instance
const service = axios.create({
  baseURL: 'http://localhost:1337', // url = base url + request url
  // withCredentials: true, // send cookies when cross-domain requests
  timeout: 5000 // request timeout
})

// 请求拦截
service.interceptors.request.use()

// 响应拦截
service.interceptors.response.use()

export default service
